package com.freight.user.service;

import com.freight.core.base.FreightBaseService;
import com.freight.core.common.vo.SearchVo;
import com.freight.file.vo.PicFileVo;
import com.freight.user.entity.DriverLicense;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 驾驶证接口
 *
 * @author huyingtai
 */
public interface DriverLicenseService extends FreightBaseService<DriverLicense, Long> {

    /**
     * 多条件分页获取
     *
     * @param driverLicense
     * @param searchVo
     * @param pageable
     * @return
     */
    public Page<DriverLicense> findByCondition(DriverLicense driverLicense, SearchVo searchVo, Pageable pageable);
    /**
     * @param file
     * @param fileConstant
     * @param userId
     * @return
     */
    public PicFileVo upLoadDriverLicense(MultipartFile file, String fileConstant, Long userId);

    public DriverLicense getDriverLicenseInfo(Long userId);


}